import axios from 'axios';

import type CardConfig from '../models/CardConfig';
import type { CardInfoQuery } from '../models/CardInstance';
import type { FaQuestionQuery } from '../models/FaQuestionList';

export const getCardInstance = (body: CardInfoQuery) => axios.post('/api/v1/card/detail', body.body);

export const addCardBySingle = (body: CardConfig) => axios.post('/verification/card/submit', body.single);

export const addCardByBatch = (body: CardConfig) => axios.post('/verification/card/submit', body.batch);

export const getFaq = (body: FaQuestionQuery) => axios.post('/api/v1/platform/type/list', body.query);
